Skip to content

QuaternaryDictionary.CreateViewBySecondaryIndex(string, TIndexKey, IScheduler) method

Defined in

Type: QuaternaryDictionary Namespace: ReactiveList.Reactive.Collections Assembly: ReactiveList.Reactive.dll

Applies to

net11.0, net10.0, net47, net471, net472, net48, net481

Overloads

  1. public SecondaryIndexReactiveView<TKey, TValue> CreateViewBySecondaryIndex<TIndexKey>(string indexName, TIndexKey key, IScheduler scheduler) where TIndexKey : notnull

  2. public SecondaryIndexReactiveView<TKey, TValue> CreateViewBySecondaryIndex<TIndexKey>(string indexName, TIndexKey key, IScheduler scheduler, int throttleMs) where TIndexKey : notnull

1. Overload

public SecondaryIndexReactiveView<TKey, TValue> CreateViewBySecondaryIndex<TIndexKey>(string indexName, TIndexKey key, IScheduler scheduler) where TIndexKey : notnull

View source (opens in a new tab)

Summary: Creates a reactive view filtered by a secondary index key.

Type parameters

NameDescription
TIndexKeyThe type of the key used in the secondary index.

Parameters

NameTypeDescription
indexNamestring (opens in a new tab)The name of the secondary index to filter by.
keyTIndexKeyThe key value to filter on.
schedulerISchedulerThe scheduler for dispatching updates.

Returns: SecondaryIndexReactiveView -- A reactive view containing values matching the secondary index key.

2. Overload

public SecondaryIndexReactiveView<TKey, TValue> CreateViewBySecondaryIndex<TIndexKey>(string indexName, TIndexKey key, IScheduler scheduler, int throttleMs) where TIndexKey : notnull

View source (opens in a new tab)

Summary: Creates a reactive view filtered by a secondary index key.

Type parameters

NameDescription
TIndexKeyThe type of the key used in the secondary index.

Parameters

NameTypeDescription
indexNamestring (opens in a new tab)The name of the secondary index to filter by.
keyTIndexKeyThe key value to filter on.
schedulerISchedulerThe scheduler for dispatching updates.
throttleMsint (opens in a new tab)Throttle interval in milliseconds. Defaults to 50ms.

Returns: SecondaryIndexReactiveView -- A reactive view containing values matching the secondary index key.

Exceptions

TypeCondition
System.InvalidOperationException (opens in a new tab)Thrown when the named secondary index does not exist or has an incompatible type.